env = Environment()

debug = ARGUMENTS.get('debug', 0)

if int(debug):
    env['CCFLAGS'] = '-g -Wall'
else:
    env['CCFLAGS'] = '-O3 -Wall'

env['CPPPATH'] = [
    '#tools',
    ]

env['LIBS'] = [
    'gtest',
    'gtest_main',
    'pthread',
    ]

Export('env');

SConscript('tools/SConscript')
SConscript('chapter_2/SConscript')

